package com.gkwave.module.bean;

import java.util.ArrayList;
import java.util.List;

import com.thoughtworks.xstream.XStream;

public class FoodMenuBean {
	public List<FoodMenuBean> entries = new ArrayList<FoodMenuBean>();
	private Integer idLocation;
	private String nmLocation;
	private Integer idBranch;
	private String nmBranch;
	private Integer idFoodMenuDetail;
	private String nmFoodMenu;
	private String txtFoodMenu;
	public FoodMenuBean(Integer idLocation, String nmLocation) {
		// TODO Auto-generated constructor stub
		this.idLocation = idLocation;
		this.nmLocation = nmLocation;
	}
	
	public FoodMenuBean(Integer idBranch, String nmBranch, boolean flag) {
		// TODO Auto-generated constructor stub
		this.idBranch = idBranch;
		this.nmBranch = nmBranch;
	}

	public FoodMenuBean() {
		// TODO Auto-generated constructor stub
	}
	public FoodMenuBean( String nmBranch, String nmFoodMenu, String txtFoodMenu) {
		// TODO Auto-generated constructor stub
//		this.idFoodMenuDetail = idFoodMenuDetail;
		this.nmBranch = nmBranch; 
		this.nmFoodMenu = nmFoodMenu;
		this.txtFoodMenu = txtFoodMenu;
	}

	public FoodMenuBean(Integer idFoodMenu, String nmFoodMenu,String txtFoodMenu) {
		// TODO Auto-generated constructor stub
		this.idFoodMenuDetail = idFoodMenu;
		this.nmFoodMenu = nmFoodMenu;
		this.txtFoodMenu = txtFoodMenu;
	}

	public String marsel(FoodMenuBean obj, String alias_list, String alias_class){
		XStream xstream = new XStream();
		xstream.alias(alias_list, List.class);
		xstream.alias(alias_class, FoodMenuBean.class);
		xstream.omitField(FoodMenuBean.class, "entries");
//		System.out.println(xstream.toXML(obj.entries));
		return xstream.toXML(obj.entries);
	}

	public Integer getIdFoodMenuDetail() {
		return idFoodMenuDetail;
	}

	public void setIdFoodMenuDetail(Integer idFoodMenuDetail) {
		this.idFoodMenuDetail = idFoodMenuDetail;
	}

	public String getNmFoodMenu() {
		return nmFoodMenu;
	}

	public void setNmFoodMenu(String nmFoodMenu) {
		this.nmFoodMenu = nmFoodMenu;
	}

	public String getTxtFoodMenu() {
		return txtFoodMenu;
	}

	public void setTxtFoodMenu(String txtFoodMenu) {
		this.txtFoodMenu = txtFoodMenu;
	}
	
}
